/**
 * @date: 2025/3/20
 * @author: 小红
 * @fileName: user
 * @Description: 用户
 */

import http from '@/utils/http';
import type { UserInfoEntity } from '@/entity/UserEntity';
import type { _AxiosRequestConfig } from '@/utils/http/types';

/**
 * 获取用户信息
 * @constructor
 */
export const ApiUserInfo = () => http.get<UserInfoEntity>('/system/user/get');

/**
 * 用户退出登录
 * @constructor
 */
export const ApiUserLogout = (data?: any, options?: _AxiosRequestConfig) => http.post('/auth/user/logout', data, options);
